<div class="main">
<form id="userListForm" method="post" action="javascript:;">
  <table id="userList" class="table table-condensed table-hover table-striped tablesorter table-fixed">
    <thead>
    <tr class="colhead">
        <th class="w-id">
            <div class="headerSortUp"><a href="#">ID</a></div>
        </th>
        <th>
            <div class="header"><a href="#">真实姓名</a></div>
        </th>
        <th>
            <div class="header"><a href="#">用户名</a></div>
        </th>
        <th>
            <div class="header"><a href="#">用户组</a></div>
        </th>
        <th>
            <div class="header"><a href="#">电话</a></div>
        </th>
        <th>
            <div class="header"><a href="#">性别</a></div>
        </th>
        <th>
            <div class="header"><a href="#">加入日期</a></div>
        </th>
        <th>
            <div class="header"><a href="#">最后登录</a></div>
        </th>
        <th class="w-120px">操作</th>
    </tr>
    </thead>
    <tbody>
        <?php foreach($list as $key => $value): ?>
        <tr class="text-center">
            <td>
                <input type="checkbox" name="ids[]" class="ids" value="<?php echo $value['id']; ?>"> <?php echo $value['id']; ?>
            </td>
            <td><?php echo $value['realname']; ?></td>
            <td><?php echo $value['name']; ?></td>
            <td><?php echo $value['group_name']; ?></td>
            <td><?php echo $value['mobile']; ?></td>
            <td>男</td>
            <td><?php echo date('Y-m-d H', $value['add_time']); ?></td>
            <td><?php echo date('Y-m-d H', $value['last_login_time']); ?></td>
            <td class="a-left w-120px">
                <?php echo HTML::userAcl('acl', 'user', $value); ?>
                <?php echo HTML::userEdit('user', 'edit', $value); ?>
                <?php echo HTML::userDelete('user', 'delete', $value); ?>
                <!--
                <a title="权限维护" class="btn-icon " target="" href="<?php echo U('admin/acl/user', array('id' => $value['id']));?>"><i class="icon-group-managepriv icon-lock"></i></a>
                <a title="编辑用户" class="btn-icon " target="" href="<?php echo U('admin/user/edit', array('id' => $value['id']));?>"><i class="icon-common-edit icon-pencil"></i></a>
                <a class="btn-icon" title="删除用户" target="" href="javascript:ajaxDelete('<?php echo U('admin/user/delete', array('id' => $value['id']));?>','userList',confirmDelete)"><i class="icon-remove"></i></a>
                -->
            </td>
        </tr>
        <?php endforeach; ?>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="9">
            <div class="table-actions clearfix">
                <div class="input-group">
                    <a href="javascript:selectAll('')" class="btn btn-select-all" id="allchecker">全选</a>
                    <a href="javascript:selectReverse('')" class="btn btn-select-reverse" id="reversechecker">反选</a>
                </div>
                <?php echo HTML::userDeleteAll('user', 'delete', array()); ?>
                <!--<button class="btn btn-submit btn-default btn-danger" onclick="ajaxDeleteSelect('<?php echo U('admin/user/delete');?>','userList',confirmDelete, 'ids')" id="submit" type="submit">批量删除</button>
                -->
            </div>
            
            <div class="" style="float:right; clear:none;">
                <?php echo $page; ?>
            </div>
        </td>
    </tr>
    </tfoot>
  </table>
</form>
</div>